<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <!--fistName: <input type="text" v-models="firstName" > <br>-->
        <!--lastName: <input type="text" v-models="lastName" > <br>-->
        <!--test:<input type="text" v-models="test" > <br>-->
        <!--fullName: <input type="text" v-models="fullName()"> <br>-->
        <!--<p @click="handleC">{{age}}</p>-->
        <input v-model="fullName()"></input>
    </div>
</body>
<script src="./js/vue.js"></script>
<script>
    var vm = new Vue({
        el:"#app",
        data:{
           /* firstName:"t",
            lastName:"mac",
            test:"test",
            age:18*/
        },
        methods:{
            fullName(){
                console.log("methods") // 调用2次
                return 1
                // return `${this.firstName }-${this.lastName}-${this.test}`;
            },
           /* handleC(){
                console.log("handleC")
            }*/
        }
    });
</script>
</html>